package oop;

public class TestCar {
    public static void main(String[] args) {
        //5.对象： 创建一个具体的汽车
        //变量类型  变量名=new Car();
        //用变量bmwZhangSanLittleBlackCar， 指代新建的汽车对象。
        new Car();//6.

        Car  bmwZhangSanLittleBlackCar=new Car();
        bmwZhangSanLittleBlackCar.run();//7.

        //8.给brand变量赋值为"bmw"
        //对象名.变量名;
        bmwZhangSanLittleBlackCar.brand="bmw";
        System.out.println(bmwZhangSanLittleBlackCar.brand);
    }
}
